package com.xiaotu.sys.mapper;

import com.xiaotu.sys.pojo.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xiaotu
 * @since 2022-01-19
 */
public interface UserMapper extends BaseMapper<User> {

    void empower(String userId, String[] roleIds);

    User getUserAndRoles(@Param("id") String id);
}
